
#ifndef KEY_VALUE_CONFIG_SIMPLE_MEMORY_STORE
#define KEY_VALUE_CONFIG_SIMPLE_MEMORY_STORE

#include <map>
#include <string>

#include "value.h"

class SimpleMemStore : public Value::Store {

public:
	SimpleMemStore(){};
	virtual ~SimpleMemStore(){};

	// Value::Store implementation
	virtual bool Has(const std::string& key) const;
	virtual bool Get(const std::string& key, std::string& v) const;
	virtual bool Set(const std::string& key, const std::string& v);

protected:
	typedef std::map<std::string, std::string> KeyValueMap;
	KeyValueMap values_;
};

#endif